package com.java2007.hotel.service.impl;

import com.java2007.hotel.dao.DinnerTableDao;
import com.java2007.hotel.factory.BeanFactory;
import com.java2007.hotel.pojo.DinnerTable;
import com.java2007.hotel.service.DinnerTableService;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ghy
 * @version 1.0
 * @date 2021-01-25
 */
public class DinnerTableServiceImpl implements DinnerTableService {

    private DinnerTableDao dinnerTableDao = (DinnerTableDao)BeanFactory.getBean("com.java2007.hotel.dao.impl.DinnerTableDaoImpl");

    @Override
    public List<DinnerTable> findByStatus(Integer status) throws SQLException {
        return dinnerTableDao.findByStatus(status);
    }
}
